<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/base.jsp"%>
<!-- 修改医疗机构信息-->
<%
 String instCode=request.getParameter("id");
 Medical model =new Medical(instCode);
//读取隶属关系列表
 DataDao dataDao=new DataDao();
 List<Data> data20102List=dataDao.findListByType("02");
 List<Data> data20106List=dataDao.findListByType("06");
 List<Data> data20104List=dataDao.findListByType("04");
 List<Data> data20101List=dataDao.findListByType("01");
 List<Data> data2010301List=dataDao.findListByType("03");
 List<Data> data2010302List=dataDao.findListByType("0301");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<link rel="stylesheet" type="text/css" href="css/admin.css">

<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="js/admin.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		//重新绑定表单提交
		$("#add_btn").bind("click", function() {
			$('form').submit();
		});
	});
</script>

</head>

<body>

	<div class="panel admin-panel">
		<div class="panel-head" id="add">
			<strong><span class="icon-pencil-square-o"></span>修改医疗机构信息</strong>
		</div>
		<div class="body-content">
			<form id="form-add" method="post" class="form-x"
				action="<%=path%>/system/MedicalServlet?m=edit">
				<div class="form-group">
					<div class="label">
						<label>机构编码：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" readonly="readonly"
							value="<%=model.getInstCode() %>" name="instCode" />
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>组织机构编码：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" readonly="readonly"
							value="<%=model.getOrgaCode() %>" name="orgaCode" />
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>机构名称：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" readonly="readonly"
							value="<%=model.getInstName() %>" name="instName" />
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>地区编码：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" readonly="readonly"
							value="<%=model.getRegCode() %>" name="regCode" />
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>行政区域编码：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" readonly="readonly"
							value="<%=model.getAreaCode() %>" name="areaCode" />
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>隶属关系：</label>
					</div>
					<div class="field">
						<select id="subjection" name="subjection" class="input w50">
							<% for(Data m:data20102List){ %>
							<option value="<%=m.getDataCode()%>"><%=m.getDataName() %></option>
							<% }%>
						</select>
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>机构级别：</label>
					</div>
					<div class="field">
						<select id="instGrade" name="instGrade" class="input w50">
							<% for(Data m:data20106List){ %>
							<option value="<%=m.getDataCode()%>"><%=m.getDataName() %></option>
							<% }%>
						</select>
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>申报定点类型：</label>
					</div>
					<div class="field">
						<select id="sbdd" name="sbdd" class="input w50">
							<% for(Data m:data20104List){ %>
							<option value="<%=m.getDataCode()%>"><%=m.getDataName() %></option>

							<% }%>
						</select>
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>批准定点类型：</label>
					</div>
					<div class="field">
						<select id="subjection" name="approve" class="input w50">
							<% for(Data m:data20104List){ %>
							<option value="<%=m.getDataCode()%>"><%=m.getDataName() %></option>
							<% }%>
						</select>
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>所属经济类型：</label>
					</div>
					<div class="field">
						<select id="subjection" name="economy" class="input w50">
							<% for(Data m:data20101List){ %>
							<option value="<%=m.getDataCode()%>"><%=m.getDataName() %></option>
							<% }%>
						</select>
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>卫生机构大类：</label>
					</div>
					<div class="field">
						<select id="hygieneBig" name="hygieneBig" class="input w50">
							<% for(Data m:data2010301List){ %>
							<option value="<%=m.getDataCode()%>"><%=m.getDataName() %></option>
							<% }%>
						</select>
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>卫生机构小类：</label>
					</div>
					<div class="field">
						<select id="hygieneSmall" name="hygieneSmall" class="input w50">
							<% for(Data m:data2010302List){ %>
							<option value="<%=m.getDataCode()%>"><%=m.getDataName() %></option>
							<% }%>
						</select>
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>主管单位：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50" value="<%=model.getUnit() %>"
							name="unit" data-validate="required:请输入主管单位" />
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>成立时间：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50"
							value="<%=model.getOpenDate() %>" name="openDate"
							data-validate="required:请输入开业时间" />
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>法人代表：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50"
							value="<%=model.getRepresent() %>" name="represent"
							data-validate="required:请输入法人代表" />
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>注册资金：</label>
					</div>
					<div class="field">
						<input type="text" class="input w50"
							value="<%=model.getFunds() %>" name="funds"
							data-validate="required:请输入注册资金" />
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label></label>
					</div>
					<div class="field">
						<button id="add_btn" class="button bg-main icon-check-square-o"
							type="button">提交</button>
					</div>
				</div>

			</form>
		</div>
	</div>

</body>
</html>
